<%@ Page PathInChannel="ajax/teacher/order/list{Ext}" RunAt="Execute" %>
<script language="c#" runat="server">
protected string Condition()
{
	StringBuilder condition = new StringBuilder(AliCMS.CourseModule.Alias.Order.IsCanceled + "=false and " + AliCMS.CourseModule.Alias.Order.IsArchived + "=false and " + AliCMS.CourseModule.Alias.Order.TeacherID + "=" + Request.QueryString["TeacherID"]);
	string and = " AND ";

	#region 关键字
	String keyword = Request.QueryString["Keyword"];
	if (!String.IsNullOrEmpty(keyword))
		condition.Append(and + AliCMS.CourseModule.Alias.Order.No + " LIKE '%" + keyword + "%' or " + AliCMS.CourseModule.Alias.Order.CourseName + " LIKE '%" + keyword + "%'");
	#endregion
	
	return condition.ToString();
}
</script>
<ali:List Mark="Course" Object="Order" Page="PageNumber" PageSize="Convert.ToInt32(Request.QueryString['PageSize'])" Condition="Condition()">
	<ali:Record>
		<a>
			<img src="<%=CourseThumbnail%>">
			<dl>
				<dt><%=CourseName%></dt>
				<dd><label>订单号码：</label><span><%=No%></span></dd>
				<dd><label>下单时间：</label><span><%=CreateTime%></span></dd>
				<dd><label>订单金额：</label><em><%=Convert.ToDecimal(Sum).ToString("0.00")%></em></dd>
			</dl>
		</a>
	</ali:Record>
</ali:List>